<extend name="./_base"/>
<block name="css">
</block>
<block name="header">

</block>
<block name="menu">

</block>
<block name="content">
    <article class="page-container">
        <form class="form form-horizontal" id="form-rule" enctype="multipart/form-data" method="post">
            <div class="row cl">
                <label class="form-label col-xs-3"><span class="c-red">*</span>日期：</label>
                <div class="formControls col-xs-6">
                    <input id="date" class="input-text laydate-icon" style="height: 30px" name="date"
                           value="{$Data.date}">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><span class="c-red">*</span>游戏：</label>
                <div class="formControls col-xs-6">
                    <select name="gid" class="input-text">
                        <volist name="GameData" id="vo">
                            <option value="{$vo.id}">{$vo.name}</option>
                        </volist>
                    </select>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><span class="c-red">*</span>上传Excel：</label>
                <div class="formControls col-xs-6">
                    <input type="file" multiple name="file">
                </div>
            </div>
            <div class="row cl">
                <div class="col-xs-6 col-xs-offset-3">
                    <input class="btn btn-primary btn-block radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                </div>
            </div>
        </form>
    </article>

</block>

<block name="script">

    <script src="__PUBLIC__/Lib/jquery.autocompleter.js"></script>

    <script type="text/javascript">
        var options = {
            success: function (data) {
                if (data.status==1){
                    layer.alert(data.info,{icon:6},function () {
                        layer.closeAll();
                    })
                }else {
                    layer.alert(data.info,{icon:5})
                }
            }
        };
        $("form").ajaxForm(options);

        $(function () {
            laydate({
                elem: '#date', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
                event: 'focus' //响应事件。如果没有传入event，则按照默认的click
            });

        });
    </script>

</block>
